#include "StdAfx.h"
#include "interface.h"

void InterFace::Init()
{
	pOverlay =  OverlayManager::getSingleton().create("test");

    pOverlay->show();

	pHeadContainer = static_cast<OverlayContainer*>
                                (OverlayManager::getSingleton().
								 createOverlayElement("Panel", "char_head"));
	pHeadContainer->setMetricsMode(Ogre::GMM_PIXELS);
    pHeadContainer->setPosition(0, 0);
    pHeadContainer->setDimensions(100, 100);
    pHeadContainer->setCaption("Hello World");
    pHeadContainer->setMaterialName ("char_head") ;

    pHeadContainer->show () ;
    pOverlay->add2D (pHeadContainer) ;

	pLifeContainer = static_cast<OverlayContainer*>
                                (OverlayManager::getSingleton().
								 createOverlayElement("Panel", "char_life"));
	pLifeContainer->setMetricsMode(Ogre::GMM_PIXELS);
    pLifeContainer->setPosition(0, 0);
    pLifeContainer->setDimensions(150, 20);
    pLifeContainer->setCaption("Hello World");
    pLifeContainer->setMaterialName ("char_life") ;

    pLifeContainer->show () ;
    pOverlay->add2D (pLifeContainer) ;

}

void InterFace::Work()
{

}